package pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

public class Worker {

  private Integer workerId;
  private String workerDepartmentCode;
  private String workerName;
  private Integer workerGender;
  private String workerLoginName;
  private String workerPassword;
  private String workerPhone;
  private Double workerSalary;
  private String workerIdCard;
  private Integer workerIsDeleted;
  private Integer workerErrorloginTimes;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp workerCreateTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp workerUpdateTime;

  private Department department;

  public Department getDepartment() {
    return department;
  }

  public void setDepartment(Department department) {
    this.department = department;
  }

  public Integer getWorkerId() {
    return workerId;
  }

  public void setWorkerId(Integer workerId) {
    this.workerId = workerId;
  }


  public String getWorkerDepartmentCode() {
    return workerDepartmentCode;
  }

  public void setWorkerDepartmentCode(String workerDepartmentCode) {
    this.workerDepartmentCode = workerDepartmentCode;
  }


  public String getWorkerName() {
    return workerName;
  }

  public void setWorkerName(String workerName) {
    this.workerName = workerName;
  }


  public Integer getWorkerGender() {
    return workerGender;
  }

  public void setWorkerGender(Integer workerGender) {
    this.workerGender = workerGender;
  }


  public String getWorkerLoginName() {
    return workerLoginName;
  }

  public void setWorkerLoginName(String workerLoginName) {
    this.workerLoginName = workerLoginName;
  }


  public String getWorkerPassword() {
    return workerPassword;
  }

  public void setWorkerPassword(String workerPassword) {
    this.workerPassword = workerPassword;
  }
  public Double getWorkerSalary() {
    return workerSalary;
  }

  public void setWorkerSalary(Double workerSalary) {
    this.workerSalary = workerSalary;
  }


  public String getWorkerIdCard() {
    return workerIdCard;
  }

  public void setWorkerIdCard(String workerIdCard) {
    this.workerIdCard = workerIdCard;
  }


  public Integer getWorkerIsDeleted() {
    return workerIsDeleted;
  }

  public void setWorkerIsDeleted(Integer workerIsDeleted) {
    this.workerIsDeleted = workerIsDeleted;
  }


  public java.sql.Timestamp getWorkerCreateTime() {
    return workerCreateTime;
  }

  public void setWorkerCreateTime(java.sql.Timestamp workerCreateTime) {
    this.workerCreateTime = workerCreateTime;
  }


  public java.sql.Timestamp getWorkerUpdateTime() {
    return workerUpdateTime;
  }

  public void setWorkerUpdateTime(java.sql.Timestamp workerUpdateTime) {
    this.workerUpdateTime = workerUpdateTime;
  }

  public String getWorkerPhone() {
    return workerPhone;
  }

  public void setWorkerPhone(String workerPhone) {
    this.workerPhone = workerPhone;
  }

  public Integer getWorkerErrorloginTimes() {
    return workerErrorloginTimes;
  }

  public void setWorkerErrorloginTimes(Integer workerErrorloginTimes) {
    this.workerErrorloginTimes = workerErrorloginTimes;
  }


  @Override
  public String toString() {
    final StringBuffer sb = new StringBuffer("Worker{");
    sb.append("workerId=").append(workerId);
    sb.append(",workerDepartmentCode='").append(workerDepartmentCode);
    sb.append(",workerName='").append(workerName);
    sb.append(",workerGender=").append(workerGender);
    sb.append(",workerLoginName='").append(workerLoginName);
    sb.append(",workerPassword='").append(workerPassword);
    sb.append(",workerPhone='").append(workerPhone);
    sb.append(",workerSalary=").append(workerSalary);
    sb.append(",workerIdCard='").append(workerIdCard);
    sb.append(",workerIsDeleted=").append(workerIsDeleted);
    sb.append(",workerErrorloginTimes=").append(workerErrorloginTimes);
    sb.append(",workerCreateTime=").append(workerCreateTime);
    sb.append(",workerUpdateTime=").append(workerUpdateTime);
    sb.append(",department=").append(department);
    sb.append("}");
    return sb.toString();
  }
}
